package com.company.oa.document.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 公文数据传输对象
 */
@Data
public class DocumentDTO {
    private Long id;

    @NotBlank(message = "公文标题不能为空")
    private String title;

    @NotBlank(message = "公文内容不能为空")
    private String content;

    @NotNull(message = "公文类型不能为空")
    private Integer type;

    private String issuer;

    private LocalDateTime issueDate;

    private String docNumber;

    private Long creatorId;

    private String creatorName;

    private Long departmentId;

    private String departmentName;

    private Integer status;

    private Long currentApproverId;

    private String currentApproverName;

    private Integer urgencyLevel;

    private Integer securityLevel;

    private Long approvalFlowId;

    private List<Long> attachmentIds;

    private List<Long> ccUserIds;
} 